package com.zcyh.exam.model.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcyh.exam.constants.EnumConstants;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 考题
 */
@Data
@TableName("exam_question_info")
public class QuestionInfo extends BaseEntity<QuestionInfo> implements IExcelDataModel {
	/**类型id*/
	private String typeId;

	/**试题答案  判断题 答案 0对 1错*/
	@Excel(name = "答案")
	@NotNull(message = "请输入试题答案")
	private String answer;
	/**试题内容*/
	@Excel(name = "试题内容")
	@NotNull(message = "请输入试题内容")
	private String content;
	/**试题类型*/
	private EnumConstants.QuestionType questionType;
	@Excel(name = "选项内容")
	private String options;
	@Excel(name = "试题解析")
	private String analysis;
	@Excel(name = "总结升华")
	private String summarize;

	@TableField("video_url")
	private String videoUrl;
	/**导入用*/
	@Excel(name = "试题类型")
	@TableField(exist = false)
	private String questionTypeName;
}
